package com.ibeetl.admin.api.dao;

import com.ibeetl.admin.api.entity.Travel_audio_list;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Root;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.beetl.sql.mapper.annotation.Update;

import java.util.Date;
import java.util.List;
import java.util.Map;

@SqlResource("api.travelAudio")
public interface TravelAudioDao extends BaseMapper<Travel_audio_list> {

    List<Travel_audio_list> queryByAttractionId( long attractionId,long userId);

    List<Long> queryNewIdByAttractionId( long attractionId,long userId);

    List<Travel_audio_list> queryByAttsId( long attsId,long userId);
    @Update
    void updateState(Long audioId,int state);
    @Update
    void save(Map params);
    @Update
    void deleteByAttsId(long attsId);
}
